

public class MessagePrinter {
    public String sayHello() {
        String message = "Hello!";
        System.out.println(message);
        return message;
    }
}